<?php if ($this->slides_dir&&$this->slides_arr): ?>
<?php $cnt = count($this->slides_arr); ?>
<?php if ($cnt > 1): ?>
<script language="javascript" type="text/javascript" src="js/style.js"></script>
<?php endif; ?>
<div class="zong">
	<div id="focus_turn">
		<ul id="focus_pic">
			<?php foreach ($this->slides_arr as $key=>$file): ?>
			<li class="<?php if ($key==0): ?>current<?php else: ?>normal<?php endif; ?>">
				<a href="<?php if ($this->links&&$this->links[$key]): ?><?php echo $this->links[$key] ?><?php else: ?>javascript:void(0);<?php endif; ?>"><img src="<?php echo $this->slides_dir; ?>/<?php echo $file; ?>" alt="" /></a>
			</li>
			<?php endforeach; ?>
		</ul>
		<?php if ($cnt > 1): ?>
		<ul id="focus_tx">
			<?php for ($i=0;$i<$cnt;$i++): ?>
			<li class="<?php if ($i==0): ?>current<?php else: ?>normal<?php endif; ?>">  </li>
			<?php endfor; ?>
		</ul>
		<div id="focus_btn">
			<?php for ($i=0;$i<$cnt;$i++): ?>
			<span class="<?php if ($i==0): ?>current<?php else: ?>normal<?php endif; ?>"><?php echo $i+1; ?></span>
			<?php endfor; ?>
		</div>
		<?php endif; ?>
	</div>
</div>
<?php endif; ?>